package com.sdkj.service.law;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdkj.dao.DaoSupport;
import com.sdkj.entity.Page;
import com.sdkj.util.PageData;

@Service("lawReceiveService")
public class LawReceiveService {
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	/*
	 * 列表
	 */
	public List<PageData> list(Page page) throws Exception{
		return (List<PageData>) dao.findForList("LawReceiveMapper.datalistPage", page);
	}
	
	public void save(PageData pd)throws Exception {
		dao.save("LawReceiveMapper.save", pd);
	}
	public PageData findById(PageData pd)throws Exception {
		return (PageData) dao.findForObject("LawReceiveMapper.findById", pd);
	}
	public void saveRev(PageData pd2)throws Exception {
		dao.save("LawReceiveMapper.saveRev", pd2);
	}
	public void updateRe(PageData pd)throws Exception {
		dao.update("LawReceiveMapper.updateRe", pd);
	}
	public void updateRev(PageData pd2) throws Exception{
		dao.update("LawReceiveMapper.updateRev", pd2);
	}

	public void delete(PageData pd) throws Exception{
		dao.delete("LawReceiveMapper.delete", pd);
	}
	public void deleteAll(String[] arrayDATA_IDS)throws Exception {
		dao.delete("LawReceiveMapper.deleteAll", arrayDATA_IDS);
	}
	public List<PageData> listAll(PageData pd) throws Exception{
		return (List<PageData>)dao.findForList("LawReceiveMapper.listAll", pd);
	}

	public PageData findJobById(PageData pd3)throws Exception {
		
		return (PageData) dao.findForObject("LawReceiveMapper.findJobById", pd3);
	}
	
	
}
